<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html">
    
    <h:head>
        <title>Agriculture For Sale</title>
        <link rel="stylesheet" type="text/css" href="#{resource['css:styles.css']}" />
    </h:head>
    
    <ui:composition template="templates/content.xhtml">
        <ui:define name="content">
            
            <h:body>
        
                <h:link value="Create Account" outcome="CreateAccount"/> <br/>
                <h:link value="Sign In" outcome="SignIn"/> <br/>
                <h:link value="Search Properties" outcome="SearchProperty"/> <br/>
                <h:link value="Upload Property" outcome="UploadProperty"/> <br/>
                <br/>

                <h:form>
                    <span id="signedInIndicator" style="display: inline">
                        <h:outputText style="color: blue; font-style: bold;" value="#{farmUserController.getMessage()}"> </h:outputText> <br/>
                       
                    </span>
                </h:form>
                
                <script type="text/javascript">
                    if (#{farmUserController.bean.signedIn} === false)
                        document.getElementById("signedInIndicator").style.display = "none";
                    else
                        document.getElementById("signedInIndicator").style.display = "inline";
                </script>

            </h:body>
            
        </ui:define>
    </ui:composition>
    
</html>